package com.lagou.io;

import java.io.InputStream;

/**
 * 加载sqlMapConfig.xml文件为InputStream
 */
public class Resources {

    /**
     * 根据路径加载sqlMapConfig.xml,存储在内存中
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path){
        InputStream inputStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }

}
